// scripts/prepare_upgrade.js
async function main() {
    const proxyAddress = '0xE21769A7Fc31A1993dE93aDc879477d064C40E88';

    const NFTSwapV2 = await ethers.getContractFactory("NFTSwap");
    const box = await upgrades.upgradeProxy(proxyAddress, NFTSwapV2);
    console.log("NFTSwap upgraded address:", box.address);
}

main()
    .then(() => process.exit(0))
    .catch(error => {
        console.error(error);
        process.exit(1);
    });